<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>{$appConfigs.title}</title>

    <link rel="stylesheet" type="text/css" href="{$contextPath}/{$Module.id}/easyui/themes/{$page_theme | default: 'default'}/easyui.css">
    <link rel="stylesheet" type="text/css" href="{$contextPath}/{$Module.id}/easyui/themes/icon.css">
    <link rel="stylesheet" type="text/css" href="{$contextPath}/{$Module.id}/style/my.css">
    
    <script type="text/javascript" src="{$contextPath}/{$Module.id}/easyui/jquery.min.js"></script>
    <script type="text/javascript" src="{$contextPath}/{$Module.id}/easyui/jquery.easyui.min.js"></script>
    <script type="text/javascript" src="{$contextPath}/{$Module.id}/javascript/my.js"></script>
</head> 
<body onpageshow="resetPagination()">
    {datagrid id="dg" datasource="/pas/FormService/findAll.do" view="f_form.view" }
    {form id="dlg" view="f_form.update" }
    {form id="dlg2" view="f_form.create_from_module" }
    {form id="dlg3" view="f_form.create_from_meta" }
    
    <script>
    {literal}
    function showFields() {
	    var row = getDatagrid('dg').datagrid('getSelected');
	    if(row) {
	    	window.parent.openTab(row.name+'的字段','/pas/form/field.shtml?form_id='+row.form_id);
	    } else {
			alert('没有选择分组！');
	    }
    }
    function showActions() {
	    var row = getDatagrid('dg').datagrid('getSelected');
	    if(row) {
	    	window.parent.openTab(row.name+'的按钮','/pas/form/action.shtml?form_id='+row.form_id);
	    } else {
			alert('没有选择分组！');
	    }
    }
    {/literal}
    </script>
</body>
</html>